<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false"%>   																			
<%@ include file="/WEB-INF/view/jsp/base.jsp" %>  																																			
<html lang="en">    																																										
<body class="wysihtml5-supported">    																																						
	<div id="content">   																																										
		<div id="content-header">
			<div class="form-actions">
				<ul id="breadcrumb">
					<li><a href="#" url="<%=path%>/sysPara/query"  onclick="toUrl($(this),'sysPara-iframe-main')">查询</a></li>
					<li><a href="#" url="<%=path%>/sysPara/form"   onclick="toUrl($(this),'sysPara-iframe-main')">新增</a></li>
					<li><a href="#" url="<%=path%>/sysPara/list"   onclick="toUrl($(this),'sysPara-iframe-main')">全列表</a></li>
				</ul>         
			</div> 
		</div> 		   																																												
		<div src="<%=path %>/sysPara/query" id="sysPara-iframe-main" frameborder="0" style="width: 100%; height: 800px;"></iframe>   											
	</div>  																																													
</body>
<script>
	
	var $mainDiv = $("#sysPara-iframe-main");  //主页面DIV
    var mainParam = {};						   //全局参数
 	
    toLoad("<%=path %>/sysPara/query");
	
	
	function toUrl(_this,id){
		mainParam = { 		//全局参数
	            param:{},
				target:"",
				_target:"",
				_param:{}	
				} ; 
		_url = _this.attr("url");
		toLoad(_url,{});
	}
	
	//div切换
	function toLoad(_url,_param){
		mainParam._target=mainParam.target;
		mainParam._param = mainParam.param;
		mainParam.target=_url;
		mainParam.param=_param;
		$mainDiv.load(_url);
		console.log("==================");
		console.log(mainParam);
		console.log("==================");
	}
	
	//取消
	function cancle(){
		console.log(mainParam);
    	toLoad(mainParam._target,mainParam._param); //返回原页面
	}
</script>   																																													
</html>																																														

